﻿package com.rockabit.utils.as3
{
	import fl.controls.ComboBox;
	import fl.controls.List;
	
	import flash.text.TextFormat;
	
	/**
	* Customized ComboBox component. Graphic changes have been made inside the component itself,
	* in the library, changes in textual display are made here.
	*/
	public class CustomComboBox extends ComboBox
	{
		private var textFormat:TextFormat;
		
		public function CustomComboBox()
		{
			super();
			
			textFormat = new TextFormat(new tahoma().fontName, 11, 0xFFFFFF);
			
			//textField is the top text, in the closed combobox
			textField.setStyle('embedFonts', true);
			textField.setStyle('textFormat', textFormat);
			
			//dropdown is the list that shows when you open the combobox
			dropdown.setStyle('cellRenderer', CustomCellRenderer);
		}
	}
}